<div class="SipeiMain_r fr">
    <h2 class="clearfix fonts_18 height45 fontc_444"><?php echo $this->title; ?></h2>
    <div class="clearfix back_bgf border_3 border_c pr30 pt20 pb20 height32 fontc_666">
        <table>
            <tbody>
                <tr>
                    <td width="87" align="right" class="pt10 pr2">考试项目：</td>
                    <td width="234" class="pt10">
                        <span class="fl standard_select pt5 pr7 pb5 pl3 border_c border_3">
                            <span class="fl select_shelter">
                                <select class="fl fontc_666" id="exam_id" name="exam_id">
                                    <?php 
                                    if(!empty($examArray)):
                                        foreach($examArray as $eVal):     ?>
                                    <option value="<?php echo $eVal['exam_id']; ?>"><?php echo $eVal['exam_name']; ?></option>
                                    <?php 
                                        endforeach;
                                    endif;    ?>
                                </select>
                            </span>
                        </span>
                    </td>
                    <td width="445" align="right" class="pt10">
                        <input type="button" value="优秀率" class="b_a_n border_3 back_bgfb w80 height32 fontc_FFF fonts_12 mr10 yx" >
                        <input type="button" value="分数段" class="b_a_n border_3 back_bgfb w80 height32 fontc_FFF fonts_12 fs">
                    </td>
                </tr>
                <tr>
                    <td align="right" class="pt10 pr2">选择学校：</td>
                    <td class="pt10">
                        <span class="fl standard_select pt5 pr7 pb5 pl3 border_c border_3">
                            <span class="fl select_shelter">
                                <select class="fl fontc_666" id="school_id" name="school_id">
                                    <?php
                                    if(!empty($schoolObject)):
                                        foreach($schoolObject as $sVal): ?>
                                    <option value="<?php echo $sVal['school_id']; ?>"><?php echo $sVal['school_name']; ?></option>
                                    <?php
                                        endforeach;
                                    endif; ?>
                                </select>
                            </span>
                        </span>
                    </td>
                </tr>
            </tbody>
        </table>
    </div>            
</div>
<script>
    $(function(){
        
        $(".yx").click(function(){
            
            var exam_id = $("#exam_id").val();
            var school_id = $("#school_id").val();
            
            var url = '<?php echo $this->createUrl('/statistics/default/list'); ?>';
            window.open(url+"?exam_id="+exam_id+"&school_id="+school_id);
            
        });
        
        $(".fs").click(function(){
            
            var exam_id = $("#exam_id").val();
            var school_id = $("#school_id").val();
            
            var url = '<?php echo $this->createUrl('/statistics/default/interval'); ?>';
            window.open(url+"?exam_id="+exam_id+"&school_id="+school_id);
            
        });
    });
</script>